class A(object):
    def __init__(self):
        self.sum = 1

    def info_print(self):
        print(self.sum)

class B(A):
    pass

result = B()
result.info_print()